package com.ruoyi.wms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 采购申请对象 wms_procure_head
 * 
 * @author yy
 * @date 2024-02-15
 */
public class WmsProcureHead extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门id */
    private Long id;

    /** 仓库id */
    @Excel(name = "仓库id")
    private Long deptId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String deptName;

    /** 采购申请编号 */
    @Excel(name = "采购申请编号")
    private String code;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 老师ID */
    @Excel(name = "老师ID")
    private Long userId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private List<WmsProcureItem> itemList;

    public List<WmsProcureItem> getItemList() {
        return itemList;
    }

    public void setItemList(List<WmsProcureItem> itemList) {
        this.itemList = itemList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("code", getCode())
            .append("status", getStatus())
            .append("userId", getUserId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
